package com.kt.dion.golf.data.golfzone;

import java.util.ArrayList;

import com.kt.dion.golf.data.Data;
import com.kt.dion.golf.util.Log;

public class GolfZoneResionListData extends Data
{
	private ArrayList arrResion = new ArrayList();

	public void addResion(Resion item)
	{
		arrResion.add(item);
	}

	public Resion getResion(int i)
	{
		return (Resion) arrResion.get(i);
	}

	public Data getSubData(int i)
	{
		if (i < arrResion.size())
			return (Data) arrResion.get(i);
		else
			return null;
	}

	public int getDataSize()
	{
		if (arrResion.isEmpty())
			Log.outLine(" arrResion is empty !!!!!!!!!!!!");
		return arrResion.size();
	}

	public class Resion
	{
		private String code;
		private String name;

		public String getCode()
		{
			return code;
		}

		public void setCode(String code)
		{
			this.code = code;
		}

		public String getName()
		{
			return name;
		}

		public void setName(String name)
		{
			this.name = name;
		}
	}

	public String toString()
	{
		return null;
	}

	public void dispose(boolean isDisposeOfPage)
	{
		arrResion.clear();
	}
}
